package com.fzj.example.design.singleton;


/**
* @Description
 * 枚举单例,推荐方式
* @Author  fanzj
* @Date   2020/5/7 10:46 上午
* @Param
* @Return
* @Exception
*
*/
public enum SingletonEnum {
    INSTANCE;

    public void doSomething(){
        System.out.println("do... something");
    }

    public static void main(String[] args) {
        SingletonEnum.INSTANCE.doSomething();
    }

}
